package ch1;

public class SchoolTest {

	public static void main(String[] args) {
		// 创建School类的对象
		School s = new School();
		// 给属性赋值
		s.name = "合肥工大大学";
		s.addr = "屯溪路179号";
		s.students = 23000;
		s.teachers = 7000;
		s.show();
		s.addr = "经开区大学城天目路";
		System.out.println(">>>>>>>>>>>>>>>>>");
		s.show();
		// System.out.println(s);
		// System.out.println(s.name);
		System.out.println(">>>>>>>>>>>>>>>");
		School s2 = new School();
		s2.name = "中国科技大学";
		s2.addr = "黄上路100号";
		s2.students = 17000;
		s2.teachers = 5000;
		s2.show();

		// s2 = null;
		// s2.show();
		// School s3 = null;
		// s3.name = "安徽科技大学";
		// s3.addr = "冰湖新区";
		// s3.show();

	}

}
